package org.dm;

import java.util.*;

public class Main {
    public static void main(String[] args) {
        System.out.println("请输入生成号码注数：");
        Scanner input = new Scanner(System.in);
        int count = input.nextInt();
        while (count>0){
            count--;
//生成双色球号码
            List<Integer> hongList = new ArrayList<>();
            List<Integer> lanList = new ArrayList<>();
            for(int i=1;i<34;i++){
                hongList.add(i);
            }
            for(int i=1;i<17;i++){
                lanList.add(i);
            }
//洗牌
            int xp = 50;
            while (xp>0){
                Collections.shuffle(hongList);
                Collections.shuffle(lanList);
                xp--;
            }
//摇奖
            Random rd = new Random();
            List<String> hong = new ArrayList<>();
            String lan = "";
            for(int i=0;i<6;i++){
                int index = rd.nextInt(33-i);
                int s = hongList.get(index);
                hong.add(s<10 ? "0"+s : s+"");
                hongList.remove(index);
//洗牌
                int zcxp = 50;
                while (zcxp>0){
                    Collections.shuffle(hongList);
                    zcxp--;
                }
            }

            int index = rd.nextInt(16);
            int s = lanList.get(index);
            lan = s<10 ? "0"+s : s+"";

//结果排序
            Collections.sort(hong);

            System.out.println("红："+hong +" 蓝："+lan);
            System.out.println("----------------- ---");
        }

    }
}